#include <iostream>
using ll = long long;

template<class ...Args>
void read(Args&...args){
    (std::cin>>...>>args);
}

template<class ...Args>
void print(const Args&...args){
    (std::cout<<...<<args);
}

const ll max_m = 1e5;
ll n, m1, m2, arr1[max_m], arr2[max_m];
/*


*/

int main(){
    read(n,m1,m2);
    for(ll i{1};i<=m1;i++){
        ll a,b;
        read(a, b);

    }
    for(ll i{1};i<=m2;i++){
        ll a, b;
        read(a, b);
        
    }
}